<template>
  <div class="about-page">
    <!-- 动态背景层 -->
    <div class="dynamic-bg">
      <div class="bg-circle circle-1"></div>
      <div class="bg-circle circle-2"></div>
      <div class="bg-circle circle-3"></div>
    </div>

    <!-- 主内容区 -->
    <main class="about-content">
      <!-- 标题区 -->
      <section class="title-section">
        <div class="title-decorator">
          <span class="dot dot-1"></span>
          <span class="dot dot-2"></span>
          <span class="dot dot-3"></span>
        </div>
        <h1 class="main-title">
          <span class="title-text">智能图书</span>
          <span class="highlight-text">推荐系统</span>
        </h1>
        <p class="subtitle">用科技连接读者与知识</p>
        <div class="title-divider">
          <div class="divider-line"></div>
          <div class="divider-icon">📚</div>
          <div class="divider-line"></div>
        </div>
      </section>

      <!-- 内容区 -->
      <section class="content-section">
        <!-- 关于系统 -->
        <article class="about-card card-1">
          <div class="card-header">
            <div class="card-icon">🤖</div>
            <h2 class="card-title">关于系统</h2>
          </div>
          <div class="card-content">
            <p>我们的智能图书推荐系统采用最先进的机器学习算法，分析您的阅读偏好、浏览历史和评分数据，为您量身定制个性化的图书推荐。</p>
            <p>系统结合协同过滤、内容分析和深度学习技术，确保推荐既符合您的口味，又能拓展您的阅读视野。</p>
          </div>
        </article>

        <!-- 我们的使命 -->
        <article class="about-card card-2">
          <div class="card-header">
            <div class="card-icon">🎯</div>
            <h2 class="card-title">我们的使命</h2>
          </div>
          <div class="card-content">
            <p>在信息爆炸的时代，我们致力于帮助读者发现真正有价值的书籍，减少选择困难，提升阅读体验。</p>
            <p>我们相信每本书都有其理想的读者，每位读者都能找到触动心灵的书籍。</p>
          </div>
        </article>

        <!-- 技术优势 -->
        <article class="about-card card-3">
          <div class="card-header">
            <div class="card-icon">💡</div>
            <h2 class="card-title">技术优势</h2>
          </div>
          <div class="card-content">
            <ul class="tech-list">
              <li>基于BERT模型的语义理解</li>
              <li>实时更新的推荐引擎</li>
              <li>多维度用户画像分析</li>
              <li>隐私保护的数据处理</li>
              <li>跨平台无缝体验</li>
            </ul>
          </div>
        </article>

        <!-- 数据统计 -->
        <div class="stats-grid">
          <div class="stat-item">
            <div class="stat-number">10M+</div>
            <div class="stat-label">图书数据</div>
          </div>
          <div class="stat-item">
            <div class="stat-number">98%</div>
            <div class="stat-label">用户满意度</div>
          </div>
          <div class="stat-item">
            <div class="stat-number">24/7</div>
            <div class="stat-label">实时更新</div>
          </div>
          <div class="stat-item">
            <div class="stat-number">5M+</div>
            <div class="stat-label">活跃用户</div>
          </div>
        </div>
      </section>

      <!-- 愿景区 -->
      <section class="vision-section">
        <div class="vision-content">
          <h2 class="vision-title">我们的愿景</h2>
          <p class="vision-text">打造全球最懂读者的智能图书推荐平台，让每一次阅读都是一次精准的知识邂逅。</p>
          <div class="vision-quote">
            <blockquote>"在浩瀚书海中，我们为您点亮指引的灯塔"</blockquote>
          </div>
        </div>
      </section>
    </main>
  </div>
</template>

<script>
export default {
  name: 'AboutPage',
  mounted() {
    this.addScrollEffects();
  },
  methods: {
    addScrollEffects() {
      // 简单的滚动视差效果
      window.addEventListener('scroll', () => {
        const scrollY = window.scrollY;
        const circle1 = document.querySelector('.circle-1');
        const circle2 = document.querySelector('.circle-2');
        const circle3 = document.querySelector('.circle-3');
        
        if (circle1) circle1.style.transform = `translateY(${scrollY * 0.2}px) rotate(${scrollY * 0.1}deg)`;
        if (circle2) circle2.style.transform = `translateY(${scrollY * 0.15}px) rotate(${-scrollY * 0.1}deg)`;
        if (circle3) circle3.style.transform = `translateY(${scrollY * 0.1}px) scale(${1 + scrollY * 0.0005})`;
      });
    }
  }
}
</script>

<style scoped>
/* 基础样式 */
.about-page {
  position: relative;
  min-height: 100vh;
  background-color: #f8f9fa;
  color: #333;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow-x: hidden;
}

/* 动态背景 */
.dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
  filter: blur(60px);
  transition: transform 0.3s ease-out;
}

.circle-1 {
  width: 600px;
  height: 600px;
  top: -300px;
  right: -300px;
}

.circle-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -200px;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
}

.circle-3 {
  width: 500px;
  height: 500px;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  background: linear-gradient(135deg, rgba(152, 251, 152, 0.1) 0%, rgba(70, 130, 180, 0.1) 100%);
}

/* 主内容区 */
.about-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

/* 标题区 */
.title-section {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.title-decorator {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-1 {
  background-color: #6495ed;
}

.dot-2 {
  background-color: #ff6b81;
}

.dot-3 {
  background-color: #9370db;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(90deg, #333 0%, #666 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-text {
  background: linear-gradient(90deg, #6495ed 0%, #9370db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 400px;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #6495ed 50%, transparent 100%);
}

.divider-icon {
  font-size: 24px;
  color: #9370db;
}

/* 内容卡片 */
.content-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
}

.about-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.card-1::before {
  background: linear-gradient(to bottom, #6495ed, #9370db);
}

.card-2::before {
  background: linear-gradient(to bottom, #ff6b81, #ff8e53);
}

.card-3::before {
  background: linear-gradient(to bottom, #20b2aa, #3cb371);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.card-icon {
  font-size: 32px;
  margin-right: 15px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.card-content {
  color: #555;
  line-height: 1.8;
}

.card-content p {
  margin-bottom: 15px;
}

/* 技术列表 */
.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.tech-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #9370db;
  font-size: 20px;
  line-height: 1;
}

/* 数据统计 */
.stats-grid {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
  width: 100%;
}

.stat-item {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #6495ed, #9370db);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: #666;
  font-size: 1rem;
}

/* 愿景区 */
.vision-section {
  text-align: center;
  margin-top: 80px;
  position: relative;
}

.vision-content {
  max-width: 800px;
  margin: 0 auto;
}

.vision-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
}

.vision-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}

.vision-quote {
  position: relative;
  padding: 30px;
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.1) 0%, rgba(147, 112, 219, 0.1) 100%);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.vision-quote::before, .vision-quote::after {
  content: '"';
  font-size: 60px;
  color: rgba(100, 149, 237, 0.2);
  position: absolute;
}

.vision-quote::before {
  top: 10px;
  left: 20px;
}

.vision-quote::after {
  bottom: -20px;
  right: 20px;
}

blockquote {
  margin: 0;
  font-size: 1.3rem;
  font-style: italic;
  color: #444;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .about-content {
    padding: 60px 30px;
  }
  
  .main-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .about-content {
    padding: 50px 20px;
  }
  
  .title-section {
    margin-bottom: 60px;
  }
  
  .main-title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .content-section {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.8rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .vision-quote {
    padding: 20px;
  }
  
  blockquote {
    font-size: 1.1rem;
  }
}
</style>